a = 10
b = 20
c = 30
if a > b:
    if a > c:
        print("a is bigger than c")
    else:
        print("c is bigger than a")
    if b > c:
        print()
    else:
        print()

if a > b and b > c:
    print()
elif b > a and c > b:
    print()


#逢7过
num = 100
for i in range(1,num + 1):
    if i%7 == 0 or (i%7!=0 and str(i).count('7')>0):
        print(i,end=' ')


#打印菱形
num = 3
hang = 9
for i in range(1,2*((hang-1)//2+1),2):
    print(("*"*i).center(hang))
for i in range(2*((hang-1)//2)-1,0,-2):
    print(("*"*i).center(hang))


 # 打印1000以内水仙花数
    '''for sum in range(100,1000):
        a = sum // 100
        b = (sum % 100) // 10
        c = sum % 10
        if sum == a**3 + b**3 + c**3 :
            print(sum)



    # 打印100以内完数
    for num in range(1, 101):
        sum = 0
        for i in range(1, num):
            if num % i == 0:
                sum += i
        if sum == num:
            print(num, end=" ")
    print()

    # 打印100以内质数
    for i in range(1,100):
        a=0
        for j in range(1,i):
            if(i%j ==0):
                a=1
                break
         if(a==0):
             print(i)

    # 打印菱形  上面5行，下面4行
    # 打印斐波那契数列  输出前50个数字
    '''